package com.lenovo.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.lenovo.dao.BaseDAO;
import com.lenovo.model.GJdComment;
import com.lenovo.service.JDService;
@Repository
public class JDServiceImpl implements JDService{

	@Resource
	private BaseDAO dao ;
	@Override
	public boolean save(GJdComment jd) {
		boolean status = false;
		try{
			dao.save(jd);
			status = true;
		}catch(Exception ex){
			ex.printStackTrace();
		}	
		return status;
	}

	@Override
	public Integer findCountByTag(String tagName) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer findCountByTable() {
		// TODO Auto-generated method stub
		return dao.countAll("GJdComment");
	}

}
